package com.professionalintellectualdevelopment.gae.logging.xmpp;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.http.*;

@SuppressWarnings("serial")
public class TestServlet extends HttpServlet {
	private static final Logger log = Logger.getLogger(XMPPLogFilter.class.getName());
	
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		log.info("Setting the content type to text/plain");
		resp.setContentType("text/plain");
		log.warning("Outputting 'Hello, world' to the client.");
		resp.getWriter().println("Hello, world");
		log.severe("I'm exiting now.");
	}
}
